package com.gistone.commis.database;

import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;
@Mapper
public interface GetBySqlMapper {

    @SelectProvider(type = TutorDynaSqlProvider.class, method = "findTutorByIdSql")
    List<Map> findRecords(String SQLAdapter);

    @SelectProvider(type = TutorDynaSqlProvider.class, method = "findTutorByIdSql")
    int findrows(String SQLAdapter);

    @InsertProvider(type = TutorDynaSqlProvider.class, method = "findTutorByIdSql")
    int insert(String SQLAdapter);

    @UpdateProvider(type = TutorDynaSqlProvider.class, method = "findTutorByIdSql")
    int update(String SQLAdapter);

    @DeleteProvider(type = TutorDynaSqlProvider.class, method = "findTutorByIdSql")
    int delete(String SQLAdapter);

}